﻿#ifndef SmartControl_H
#define SmartControl_H

/********************************************************************************
** @ Date:2025/05/10
** @ Author: Gaojia
** @ Description:  入口界面
** @ Version:1.0.0
** @ Fun:
********************************************************************************/
#include <QtWidgets/QMainWindow>
#include "ui_SmartControl.h"
#include "UPointTable.h"
#include "CLogOper.h"
class UNodeManager;
class UCarouselManager;
class USceneManager;
class SmartControl : public QMainWindow
{
    Q_OBJECT

public:
    SmartControl(QWidget *parent = nullptr);
    ~SmartControl();
private:
	void initUi();  //初始化 ui
	bool eventFilter(QObject* obj, QEvent* event);
	void destroyUi();   //释放资源
	void load();        //加载资源

protected:
	void closeEvent(QCloseEvent *event) override;

private:
    Ui::SmartControlClass ui;
private slots:
	void slot_start();
	void slot_stop();
	void slot_New();
	void slot_Save();
	void slot_Open();
	void slot_SaveAs();
	void slot_AddNode();
	void slot_AddDevice();
	void slot_AddPoint();
	void slot_Cut();
	void slot_Past();
	void slot_Undo();
	void slot_Redo();
	void slot_Delete();
	void onTabChanged(int index);
	void slot_addScene();
	void slot_addSceneNode();
	void slot_deleteScene();
	void slot_addCarouseNode();
	void slot_deleteCarouseNode();
	void slot_runCarouse();    //开始轮播
	void slot_stopCarouse();   //停止轮播
	void slot_setInterval();   //设置轮播间隔
	void slot_enlarge();       //全屏
	void slot_Close();
};
#endif